<?php /* Smarty version 2.6.19, created on 2012-12-24 14:54:54
         compiled from vietcad/productdetail.tpl.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'strip_tags', 'vietcad/productdetail.tpl.html', 9, false),array('modifier', 'number_format', 'vietcad/productdetail.tpl.html', 39, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/header.tpl.html", 'smarty_include_vars' => array('title' => 'header')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
    	<div class="content">
   			<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/left.tpl.html", 'smarty_include_vars' => array('title' => 'left')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
        	<div class="cont_right">
           		<div class="main_content">
                	<div class="breadcrumb">
                          <span class="left"></span>
                          <ul>
                            <li><?php if ($this->_tpl_vars['patParentItems']): ?> <?php $_from = $this->_tpl_vars['patParentItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i'] => $this->_tpl_vars['patParentItem']):
?><a href="<?php echo $this->_tpl_vars['patParentItem']->getUrl('vn'); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['patParentItem']->getName('vn'))) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)); ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['patParentItem']->getName('vn'))) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)); ?>
 </a><?php endforeach; endif; unset($_from); ?><?php endif; ?></li>
                          </ul>
                          <span class="right"></span>
                        </div>
                    <div class="details">
                        <?php echo '
						<script type="text/javascript" language="javascript">
                            $(".themvaogio").click(function(){
                                $(".shopping").submit();
                            });		

                    
                        </script>
                        '; ?>

                        <?php if ($this->_tpl_vars['productItem']): ?>
                        <form class="shopping" action="" method="post">
                        
                        
                        <div class="chitietsp">
                            
                            <h1><?php echo $this->_tpl_vars['productItem']->getName(); ?>
</h1>
                            <p style="text-align:center;"><img src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/gallery/avatar_upload/products/avatar/<?php echo $this->_tpl_vars['productItem']->getAvatar(); ?>
"/>
                            <br/><a  href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/gallery/avatar_upload/products/storage/<?php echo $this->_tpl_vars['productItem']->getAvatar(); ?>
" class="highslide"  onclick="return hs.expand(this)" title="<?php echo $this->_tpl_vars['productItem']->getName('vn'); ?>
" ><img src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/images/icon_zoom.jpg" title="xem hinh lon" /></a>
                            </p>
                                    
                            <ul>
                             <span style="clear:both !important; text-align:left; font-weight:bold;">Tính năng nổi bật</span>
                       			 <div class="thongtinsp">
                            <?php echo $this->_tpl_vars['productItem']->getNSX('vn'); ?>

                       </div>
                                <li class="giasp1">Giá: <?php if ($this->_tpl_vars['productItem']->getSPrice()): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['productItem']->getSPrice())) ? $this->_run_mod_handler('number_format', true, $_tmp, 0, ",", ".") : number_format($_tmp, 0, ",", ".")); ?>
 VNĐ<?php else: ?><?php if ($this->_tpl_vars['productItem']->getPrice() != 0): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['productItem']->getPrice())) ? $this->_run_mod_handler('number_format', true, $_tmp, 0, ",", ".") : number_format($_tmp, 0, ",", ".")); ?>
 VNĐ <?php else: ?>Đang cập nhật<?php endif; ?><?php endif; ?> </li>

                                <li class="chitiet">
                                  <input type="hidden" name="op" value="shopping"  />
                                  <input type="hidden" name="slug" value="<?php echo $this->_tpl_vars['slug']; ?>
"  />
                                  <input type="hidden" name="plus" value="addToCart" />
                                  <input type="hidden" name="lang" value="vn" />   
                                   <input type="submit" name="btn_shopping" value="Mua hàng"  class="themvaogio"/>          
                                   
                                    <a href="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/index.php?op=shopping&lang=<?php echo $this->_tpl_vars['lang']; ?>
"><span class="xemgio">Xem giỏ</span></a>
                                    
                                </li>
                            </ul>
                        </div><!--chitietsp-->
                        </form>
                        <div class="clearfix"></div>
                        <div class="motasanpham">
                            <h3>Mô tả sản phẩm:</h3><br />
                            <div class="clearfix"></div>
                            <?php echo $this->_tpl_vars['productItem']->getDetails('vn'); ?>

                        </div>
                        
                        <?php endif; ?>
                        
                    </div>
                    
                </div>
                <div class="sanphamkhac">
    	
        <?php if ($this->_tpl_vars['randomproducItems']): ?>
        <h2>Sản phẩm khác:</h2>
         <div class="dongProducts">
         <?php $_from = $this->_tpl_vars['randomproducItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['proItem'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['proItem']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['proItem']):
        $this->_foreach['proItem']['iteration']++;
?>
        
         <div class="boxsp <?php if (( ($this->_foreach['proItem']['iteration']-1)+1 ) % 4 == 0): ?>box_last<?php endif; ?>">
                <div class="bubbleInfo">
                    <div class="picsp">
                        <img class="trigger" src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/gallery/avatar_upload/products/avatar/<?php echo $this->_tpl_vars['proItem']->getAvatar(); ?>
" id="download">
                        
                    </div>
                    <div class="khunghienthi">
                    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/popup.tpl.html", 'smarty_include_vars' => array('title' => 'popup')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                    </div>
                    <div class="bottomsp">
                        <ul>
                            <li class="tensp"><a href="<?php echo $this->_tpl_vars['proItem']->getViewUrl(); ?>
"><?php echo $this->_tpl_vars['proItem']->getName(); ?>
</a></li>
                             <?php if ($this->_tpl_vars['proItem']->getSPrice()): ?>
                            <li class="vaochitiet"><a href="<?php echo $this->_tpl_vars['proItem']->getViewUrl(); ?>
" title="<?php echo $this->_tpl_vars['proItem']->getName(); ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['proItem']->getSPrice())) ? $this->_run_mod_handler('number_format', true, $_tmp, 0, ",", ".") : number_format($_tmp, 0, ",", ".")); ?>
 VNĐ</a></li>
                            <?php else: ?>
                            <li class="vaochitiet"><a href="<?php echo $this->_tpl_vars['proItem']->getViewUrl(); ?>
" title="<?php echo $this->_tpl_vars['proItem']->getName(); ?>
"><?php if ($this->_tpl_vars['proItem']->getPrice() != 0): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['proItem']->getPrice())) ? $this->_run_mod_handler('number_format', true, $_tmp, 0, ",", ".") : number_format($_tmp, 0, ",", ".")); ?>
 VNĐ <?php else: ?>Đang cập nhật<?php endif; ?></a></li>
                            <?php endif; ?>
                        </ul>
                    </div><!--bottomsp-->
                </div>
			</div>
        <!-- boxsp -->
         <?php if (( ($this->_foreach['proItem']['iteration']-1)+1 ) % 4 == 0 && ($this->_foreach['proItem']['iteration']-1) > 0): ?>
        		<div class="clearfix"></div>
        	</div><!--dongProducts-->
            <div class="dongProducts" <?php if (( ($this->_foreach['proItem']['iteration']-1)+5 ) >= ( $this->_foreach['proItem']['total'] )): ?>style="border:none"<?php endif; ?>>
        <?php endif; ?>
        <?php endforeach; endif; unset($_from); ?>
        </div>
		<?php endif; ?>
    </div>
  			 </div>
   		</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/footer.tpl.html", 'smarty_include_vars' => array('title' => 'footer')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 